package com.hilon.segment.jpa.service.impl;

import com.hilon.segment.jpa.entity.MaterialCategory;
import com.hilon.segment.jpa.repository.MaterialCategoryRepository;
import com.hilon.segment.jpa.service.MaterialCategoryService;
import com.hilon.base.service.EntityHandle;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Transactional(rollbackFor = Exception.class)
@Service
public class MaterialCategoryServiceImpl extends EntityHandle<MaterialCategory> implements MaterialCategoryService {
    private final MaterialCategoryRepository materialCategoryRepository;

    public MaterialCategoryServiceImpl(MaterialCategoryRepository materialCategoryRepository) {
        this.materialCategoryRepository = materialCategoryRepository;
        super.buildCurRepository(materialCategoryRepository);
    }
}
